package cn.fuck;

import java.io.IOException;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.Arrays;
import java.util.List;
import java.util.Optional;

public class Section1_6 {
    public static void main(String[] args) throws IOException {
        String wordString = new String(Files.readAllBytes(Paths.get("" +
                "D:\\IDEA\\Code22\\src\\cn\\fuck\\word.txt")));
        List<String> words = Arrays.asList(wordString.split("\\W+"));
        //System.out.println(words);
        boolean b = words.stream()
                .parallel()
                .anyMatch(s -> s.startsWith("w"));
        System.out.println(b);
    }
}
